-- GENERATED SPELL FOR [Ruul's Netherdrake] --


function spell0_22106(pUnit, Event) --@Arcane Blast,n/a--
pUnit:FullCastSpellOnTarget(38344,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22106', 610, 1)
end

function spell1_22106(pUnit, Event) --@Intangible Presence,n/a--
pUnit:FullCastSpellOnTarget(36513,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22106', 8280, 1)
end

function Sorts_22106(pUnit, Event)
local choix_sorts_22106 = math.random(0, 1)
if choix_sorts_22106 == 0 then
pUnit:RegisterEvent('spell0_22106', 1, 1)
end
if choix_sorts_22106 == 1 then
pUnit:RegisterEvent('spell1_22106', 1, 1)
end
end

function mob22106_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22106', math.random(1500, 3000), 1)
end

function mob22106_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22106_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22106_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22106, 1, 'mob22106_Action')
RegisterUnitEvent(22106, 2, 'mob22106_Leave')
RegisterUnitEvent(22106, 3, 'mob22106_Kill')
RegisterUnitEvent(22106, 4, 'mob22106_Die')
